﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using WalkingTec.Mvvm.Core;

namespace KRS.Model
{
    public enum LouPan
    {
        LouPan1,
        LouPan2,
        LouPan3,
    }
    public enum HouseType
    {
        ZhuZhai,
        XieZiLou,
        GongYu
    }
    public class HouseInfo:BasePoco
    {
        [Display(Name ="楼盘")]
        [Required(ErrorMessage ="{0}是必填项")]
        public LouPan LouPan { get; set; }

        [Display(Name = "标题")]
        [Required(ErrorMessage = "{0}是必填项"),StringLength(50)]

        public string Title { get; set; }


        [Display(Name = "单价")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int UnitPrice { get; set; }

        [Display(Name = "最小套价")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int MinTaoPrice { get; set; }

        [Display(Name = "最大套价")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int MaxTaoPrice { get; set; }

        [Display(Name = "面积")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int MianJi { get; set; }

        [Display(Name = "地址")]
        [Required(ErrorMessage = "{0}是必填项"),StringLength(100)]
        public string Address { get; set; }

        [Display(Name = "居数")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int JuNum { get; set; }

        [Display(Name = "厅数")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int TingNum { get; set; }

        [Display(Name = "卫数")]
        [Required(ErrorMessage = "{0}是必填项")]
        public int WeiNum { get; set; }

        [Display(Name = "相册")]
        public List<HousePhotos> Photos { get; set; }
    }
}
